﻿@model Poco.Serveur

@{
    ViewBag.Title = "CreateServeur";
}

<h2>CreateServeur</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Serveur</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.ZoneAttribue_Id)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ZoneAttribue_Id)
            @Html.ValidationMessageFor(model => model.ZoneAttribue_Id)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nom)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nom)
            @Html.ValidationMessageFor(model => model.Nom)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Prenom)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Prenom)
            @Html.ValidationMessageFor(model => model.Prenom)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RestaurantId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RestaurantId)
            @Html.ValidationMessageFor(model => model.RestaurantId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DateCreation)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DateCreation)
            @Html.ValidationMessageFor(model => model.DateCreation)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DateDernierLogin)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DateDernierLogin)
            @Html.ValidationMessageFor(model => model.DateDernierLogin)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Retour à la liste", "listeServeur")
</div>
